package com.guoxin.chapter2.atomicintegernosafe;

/**
 * @author guoxin
 * @date 2019年8月21日
 */
public class MyThread extends Thread {
	private MyService myService;

	public MyThread(MyService myService) {
		this.myService = myService;
	}

	@Override
	public void run() {
		myService.addNum();
	}

}
